package com.sky.mapper;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface SetmealDishMapper {

     //新增套餐(day04任务一)
     void insertBatch(@Param("setmealDishes") List<SetmealDish> setmealDishes) ;
     //批量删除套餐(day04任务三)
     @Delete("delete from setmeal_dish where setmeal_id = #{setmealId}")
     void deleteBySetmealId(Long setmealId);
}
